﻿/********************************************************************************/
// <copyright file="LINQ2SQLUnitOfWork.cs" company="Asia E-Business Solutions">
//     Copyright © 2012. All right reserved
// </copyright>
//
// <history>
//  <change who="Hieu Nguyen" date="11/12/2012 12:24:35 PM">Created</change>
// <history>
/********************************************************************************/

namespace JLL.China.Infrastructure.Repositories
{
    using JLL.China.Infrastructure.Repositories.LINQ2SQL;

   public  class LINQ2SQLUnitOfWork<T>:UnitOfWork.UnitOfWork<T> where T: new()
    {
       public override void Commit()
       {
           base.Commit();
           var dataContext = ObjectFactory.Resolve<JLLCHINADataContext>();
           dataContext.SubmitChanges();
       }
    }
}
